a = 9 #1001
b = 3 #0011
print(a|b)
print(a<<1) #10010
print(a>>1)
print(a&b)
print(~a)
#加减乘除略过
print(a>b)